﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SQLTouch.Client.Metro.Cache
{
    public interface ICache<T>
    {
        event Action<T> ItemAdded;
        event Action<T> ItemUpdated;
        event Action<T> ItemDeleted;

        IEnumerable<T> GetItems();
        void Add(T item);
        void Delete(T item);
        void Update(T item);
    }
}
